﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.VirtualEarth.MapControl;

namespace Resto55BingMapSilverlightControl
{
    public partial class Page : UserControl
    {
        public Page(string longitude, string latitude) : this(double.Parse(longitude),double.Parse(latitude))
        {            
        }

        public Page(double longitude, double latitude)
        {
            InitializeComponent();
            resto55Map.Mode = new RoadMode();
            

            resto55Map.SetView(new Location(longitude, latitude), 10000);
        }
    }
}
